import axios from '@/axios/axiosConfig'

// 获取规则列表
export function listView (params) {
  return axios({
    'url': '/daq/admin/rule/executeRule/listView',
    'method': 'post',
    'data': params
  })
}

export function addExecuteTask (params) {
  return axios({
    'url': '/daq/admin/rule/executeTask/add',
    'method': 'post',
    'data': params
  })
}

export function getExecuteRule (params) {
  return axios({
    'url': '/daq/admin/rule/executeRule/get',
    'method': 'post',
    'data': params
  })
}

export function updateExecuteRule (params) {
  return axios({
    'url': '/daq/admin/rule/executeRule/update',
    'method': 'post',
    'data': params
  })
}

export function getAcquisitionRule (params) {
  return axios({
    'url': '/daq/admin/rule/acquisitionRule/get',
    'method': 'post',
    'data': params
  })
}

export function updateAcquisitionRule (params) {
  return axios({
    'url': '/daq/admin/rule/acquisitionRule/update',
    'method': 'post',
    'data': params
  })
}

export function getCheckRule (params) {
  return axios({
    'url': '/daq/admin/rule/checkRule/get',
    'method': 'post',
    'data': params
  })
}

export function listCheckRule (params) {
  return axios({
    'url': '/daq/admin/rule/checkRule/list',
    'method': 'post',
    'data': params
  })
}

export function updateCheckRule (params) {
  return axios({
    'url': '/daq/admin/rule/checkRule/update',
    'method': 'post',
    'data': params
  })
}

export function getMsgRule (params) {
  return axios({
    'url': '/daq/admin/rule/msgRule/get',
    'method': 'post',
    'data': params
  })
}

export function updateMsgRule (params) {
  return axios({
    'url': '/daq/admin/rule/msgRule/update',
    'method': 'post',
    'data': params
  })
}

export function updateExecuteAction (params) {
  return axios({
    'url': '/daq/admin/rule/executeRule/updateAction',
    'method': 'post',
    'data': params
  })
}

export function deleteTask (params) {
  return axios({
    'url': '/daq/admin/rule/executeTask/delete',
    'method': 'post',
    'data': params
  })
}

export function executeTask (params) {
  return axios({
    'url': '/daq/admin/task/execute',
    'method': 'post',
    'data': params
  })
}

export function listRecord (params) {
  return axios({
    'url': '/daq/admin/record/list',
    'method': 'post',
    'data': params
  })
}
